package IC.AST.nodes;

import java.util.List;
import IC.AST.*;

/**
 * the top-level program
 */
public class Program extends ASTNode {
	private List<ClassDecl> classes;	// the program class declarations

	/**
	 * @param classes the program class declarations
	 * @param line the node line number
	 * @param column the node column number
	 */
	public Program(List<ClassDecl> classes, int line, int column) {
		super(line,column);
		this.classes = classes;
	}

	/**
	 * @return the program class declarations
	 */
	public List<ClassDecl> getClasses() {
		return this.classes;
	}

	public Object accept(Visitor v) {
		return v.visit(this);
	}
}
